using System;
using System.Collections.Generic;


namespace InterpreteScheme
{
    class Lexer
    {
        public static List<string> tokenizar(string programa)
        {
            List<string>ret     = new List<string>();
            char []     blancos = new char [] { ' ', '\r', '\n', '\t' };

            programa = programa.Replace("(", " ( ");
            programa = programa.Replace(")", " ) ");

            foreach (string token in programa.Split (blancos, StringSplitOptions.RemoveEmptyEntries))
                ret.Add (token);

            return ret;
        }
    }
}
